//
//  CellContent.m
//  CarHome
//
//  Created by lanou3g on 15/4/26.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "CellContent.h"

@implementation CellContent



-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.Id = value;
    }
    
}

-(void)setSmallpic:(NSString *)smallpic
{
    if (_smallpic != smallpic) {
        [_smallpic release];
        _smallpic = [smallpic retain];
        __block CellContent *weakSelf = self;
        [ImageDownloader imageDownloaderWithURLStr:self.smallpic result:^(UIImage *image) {
            weakSelf.imageData = image;
        }];
    }
    
}





-(NSString *)description
{
    return [NSString stringWithFormat:@"%@ %@ %@", self.title, self.time, self.replycount];
}



-(void)dealloc
{
    [_title release];
    [_time release];
    [_replycount release];
    [_smallpic release];
    [_lasttime release];

    [_dbid release];
    [_Id release];
    [_indexdetail release];
    [_intacttime release];
    [_jumppage release];
    [_mediatype release];
    [_newstype release];
    [_pagecount release];
    [_type release];
    [_updatetime release];


    [super dealloc];


}




@end
